package org.example.juc.queue;

import java.util.concurrent.ArrayBlockingQueue;
import java.util.concurrent.BlockingQueue;

public class ArrayBlockQueue {

    public static void main(String[] args) throws InterruptedException {
        BlockingQueue blockingQueue = new ArrayBlockingQueue(10);
        blockingQueue.add("11");
        blockingQueue.put("12");
        blockingQueue.offer("12");
        blockingQueue.take();

    }
}
